import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';

import { AppComponent } from './app.component';
import { TopbarserveService } from './public/topbar/topbarserve.service';
import {CartService} from './service/cart.service';
import {CatService} from './service/cat.service';
import { PageNotFoundComponent } from './page-not-found/page-not-found.component';
import {AppRoutingModule} from './app-routing.module';
import { OrderComponent } from './order/order.component';
import {AuthGuard} from './auth/auth-guard.service';
import {AddressService} from './service/address.service';
import {HomeModule} from './home/home.module';
import {CartModule} from './cart/cart.module';
import {GoodsDetailModule} from './goods-detail/goods-detail.module';
import {SharedModule} from './shared/shared.module';
import {AuthModule} from './auth/auth.module';
import {PublicModule} from './public/public.module';
import { MiaoshaComponent } from './miaosha/miaosha.component';
import {Cart1Service} from './service/cart.service';
import {HttpService} from './service/http.service';
import {AuthService} from './auth/auth.service';

@NgModule({
  declarations: [
    AppComponent,
    PageNotFoundComponent,
    OrderComponent,
    MiaoshaComponent
  ],
  imports: [
    BrowserModule,
    HttpModule,
    AppRoutingModule,
    HomeModule,
    CartModule,
    GoodsDetailModule,
    SharedModule,
    AuthModule,
    PublicModule
  ],
  providers: [TopbarserveService, CartService, CatService, AuthGuard, AuthService, AddressService, Cart1Service, HttpService],
  bootstrap: [AppComponent]
})
export class AppModule { }
